package com.thm.tfast.modules.sys.model.dto.resource;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author THM
 * @date 2022/10/29
 * @desc 资源类型修改dto
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ResourceCategoryUpdateDto {
    @ApiModelProperty(value = "资源类型ID", required = true)
    @NotNull(message = "资源类型ID不能为空")
    private Long id;

    @ApiModelProperty(value = "资源类型名称")
    @Size(max = 32, message = "资源类型名称不能超过32位")
    private String name;

    @ApiModelProperty(value = "排序")
    private Integer sort;

}
